﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.OleDb;//添加oledb的引用

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //在web.config中设置数据库路径
        OleDbConnection con = new OleDbConnection(conn.Connstr);
        con.Open();
        Response.Write("连接数据库成功\t");
        con.Close();
        Response.Write("成功关闭数据库");
        
    }
}
